package com.bean;

/**
 * @ClassName UserPage
 * @Desc 用户名称查找类
 * @Author xiaoding
 * @Date 2021/1/11 10:29
 * @Version 1.0
 */

public class UserPage {
    //功能属性
    private String uName;
    private int page;
    private int currPage;
    private int start;

    //构造方法
    public UserPage() {
    }
    public UserPage(String uName, int page, int currPage) {
        this.uName = uName;
        this.page = page;
        this.currPage = currPage;
    }
    public UserPage(int page, int currPage) {
        this.page = page;
        this.currPage = currPage;
    }

    //get、set方法
    public String getuName() {
        return uName;
    }

    public int getPage() {
        return page;
    }

    public int getCurrPage() {
        return currPage;
    }

    public int getStart() { return (page - 1)*currPage; }

    public void setuName(String uName) { this.uName = uName; }

    public void setPage(int page) {
        this.page = page;
    }

    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }
}
